package com.xydtech.ecard.merchant.service.impl;

import com.xydtech.common.annotation.DataScope;
import com.xydtech.ecard.merchant.domain.EcardCustManagerMerchant;
import com.xydtech.ecard.merchant.mapper.EcardCustManagerMerchantMapper;
import com.xydtech.ecard.merchant.service.IEcardCustManagerMerchantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 * 网点建档商户信息统计Service
 *@author lin
 *@version 1.0
 *@create 2023/8/3 9:00
 */
@Service
public class EcardCustManagerMerchantServiceImpl implements IEcardCustManagerMerchantService {

    @Autowired
    private EcardCustManagerMerchantMapper ecardCustManagerMerchantMapper;
    /**
     * 网点建档商户信息统计
     * @param ecardCustManagerMerchant
     * @return
     */
    @Override
    @DataScope(deptAlias = "aa")
    public List<EcardCustManagerMerchant> selectCustManagerMerchantInfo(EcardCustManagerMerchant ecardCustManagerMerchant) {
        return ecardCustManagerMerchantMapper.selectCustManagerMerchantInfo(ecardCustManagerMerchant);
    }

    /**
     * 营销经理建档企业信息统计
     * @param ecardCustManagerMerchant
     * @return
     */
    @Override
    @DataScope(deptAlias = "aa")
    public List<EcardCustManagerMerchant> selectCustManagerEnterpriseInfo(EcardCustManagerMerchant ecardCustManagerMerchant) {
        return ecardCustManagerMerchantMapper.selectCustManagerEnterpriseInfo(ecardCustManagerMerchant);
    }

    /**
     * 营销经理建档新型农业主体信息统计
     * @param ecardCustManagerMerchant
     * @return
     */
    @Override
    @DataScope(deptAlias = "aa")
    public List<EcardCustManagerMerchant> selectCustManagerAgricultureInfo(EcardCustManagerMerchant ecardCustManagerMerchant) {
        return ecardCustManagerMerchantMapper.selectCustManagerAgricultureInfo(ecardCustManagerMerchant);
    }

    /**
     * 营销经理建档个人信息统计
     * @param ecardCustManagerMerchant
     * @return
     */
    @Override
    @DataScope(deptAlias = "aa")
    public List<EcardCustManagerMerchant> selectCustManagerPersonInfo(EcardCustManagerMerchant ecardCustManagerMerchant) {
        return ecardCustManagerMerchantMapper.selectCustManagerPersonInfo(ecardCustManagerMerchant);
    }
}
